package io.renren.modules.medical.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.renren.common.validator.group.AddGroup;
import lombok.Data;
import javax.validation.constraints.NotNull;

/**
 *	医生病人关系实体
 * @author luosheng
 * @date 2023-04-27 10:03:57
 */
@Data
@TableName("patient_doctor_relative")
public class PatientDoctorRelativeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 医生Id
	 */
	private Long doctorId;
	/**
	 * 病人Id
	 */
	@NotNull(message ="病人Id不能为空", groups = {AddGroup.class})
	private Long patientId;
	/**
	 * 病情Id
	 */
	@NotNull(message = "病情Id不能为空", groups = {AddGroup.class})
	@TableField("sub_id")
	private Long subId;
	/**
	 * 病情名
	 */
	@TableField("sub_title")
	private String subTitle;

	@TableField("patient_basic_id")
	private Long patientBasicId;
}
